package cn.edu.scau.cmi.wuzhenzhou.composite.consistent;

import java.util.ArrayList;
import java.util.Set;

public class ConsistentPerson extends ConsistentOrganization{
	
private String name;
	

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public void addChild(ConsistentOrganization child) {
		System.out.println("对不起，该节点时叶节点，不能添加子节点");
	}

	@Override
	public void deleteChild(String name) {
		System.out.println("对不起，该节点是叶节点，没有子节点可以删除");
	}
	
	
	

}
